package com.example.googlemapdrawroutelast;

import android.os.Parcel;
import android.os.Parcelable;

public class UserInfo implements Parcelable{
	
	int id_user;
	
	public UserInfo(int id_user)
	{
		this.id_user = id_user;
	}
	public int getId_user() {
		return id_user;
	}

	public void setId_user(int id_user) {
		this.id_user = id_user;
	}
			
	public UserInfo(Parcel in) {
		this.id_user = in.readInt();
		
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel out, int flags) {
		// TODO Auto-generated method stub
		out.writeInt(id_user);
	}
	
	public static final Parcelable.Creator<UserInfo> CREATOR = new Parcelable.Creator<UserInfo>() {
		public UserInfo createFromParcel(Parcel in) {
			return new UserInfo(in);
		}

		public UserInfo[] newArray(int size) {
			return new UserInfo[size];
		}
	};


}
